﻿using System;
using System.Collections.Generic;
using System.Text;
using AudioPlayer.Plugin.Storage;
using AudioPlayer.Entity;

namespace AudioPlayer.Database {
	/// <summary>
	/// Picture class
	/// </summary>
	internal class Picture : BaseEntity,IPicture {
		#region Property
		public string Description {
			get {
				return this.GetValue<string>("Description");
			}
			set {
				this.SetValue<string>("Description", value);
			}
		}
		public string Mimetype {
			get {
				return this.GetValue<string>("Mimetype");
			}
			set {
				this.SetValue<string>("Mimetype", value);
			}
		}
		public bool Primary {
			get {
				return this.GetValue<bool>("Primary");
			}
			set {
				this.SetValue<bool>("Primary", value);
			}
		}
		public byte[] Bytes {
			get {
				return this.GetValue<byte[]>("Bytes");
			}
			set {
				this.SetValue<byte[]>("Bytes", value);
			}
		}
		public int Width
		{
			get { return 0; }
		}
		public int Height
		{
			get { return 0; }
		}
		#endregion
	}
}
